FROM alpine:3.3

ARG DOCKER_IMAGE_TAG
ENV FB_VERSION=$DOCKER_IMAGE_TAG

# wget https://download.elastic.co/beats/filebeat/filebeat-1.0.0-x86_64.tar.gz
# wget https://download.elastic.co/beats/filebeat/filebeat-1.1.0-x86_64.tar.gz
# wget https://download.elastic.co/beats/filebeat/filebeat-1.2.0-x86_64.tar.gz
# wget https://download.elastic.co/beats/filebeat/filebeat-1.3.0-x86_64.tar.gz

# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-5.0.0-linux-x86_64.tar.gz
# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.0.0-linux-x86_64.tar.gz
# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-7.0.0-linux-x86_64.tar.gz
# wget https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.0.0-linux-x86_64.tar.gz

ADD filebeat-$FB_VERSION-linux-x86_64 /usr/share/filebeat

WORKDIR /usr/share/filebeat

CMD ["/usr/share/filebeat/filebeat"]
